import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
    history: createWebHashHistory(),
    routes:[
        
       {
        path: "/",
        redirect: "/mpage"
       },
       {
        path: "/mpage",
        component: () => import('../views/mainPage/mainpage.vue'),
        children: [
            {
                path: "kaoqin",
                component: () => import("../views/dy/kao.vue")
            },
            {
                path: "guize",
                component: () => import("../views/dy/rule.vue"),
                
                
            },
            {
                path: "jilu",
                component: () => import("../views/dy/record.vue")
            },
            {
                path: "tongji",
                component: () => import("../views/dy/statistical.vue")
            },
           

           
        ]

    }
       
      ]
})